import request from '@/utils/request'


//若依生成js少了/service-ry 前缀
// 首页查询Top6受访页面列表
export function listInterviewPages(query) {
  return request({
    // 报错403


    //能用的
        url: '/service-ry/interview/interviewPages/list',

    method: 'get',
    params: query
  })
}

// 查询Top6受访页面详细
export function getInterviewPages(id) {
  return request({
    url: '/service-ry/interview/interviewPages/' + id,
    method: 'get'
  })
}

// 新增Top6受访页面
export function addInterviewPages(data) {
  return request({
    url: '/service-ry/interview/interviewPages',
    method: 'post',
    data: data
  })
}

// 修改Top6受访页面
export function updateInterviewPages(data) {
  return request({
    url: '/service-ry/interview/interviewPages',
    method: 'put',
    data: data
  })
}

// 删除Top6受访页面
export function delInterviewPages(id) {
  return request({
    url: '/service-ry/interview/interviewPages/' + id,
    method: 'delete'
  })
}

// 导出Top6受访页面
export function exportInterviewPages(query) {
  return request({
    url: '/service-ry/interview/interviewPages/export',
    method: 'get',
    params: query
  })
}


//Top6最新数据
export function getInterviewNewData() {
  return request({
     url: '/service-ry/interview/interviewPages/latestList',
    method: 'get',
    // headers:{
    //  isToken:false 
    // }
   
  })
}
